package cn.koala.key.firstmaintain.entity.enums;

import cn.koala.key.common.enums.HasCaption;
import cn.koala.key.common.enums.HasCode;

/**
 * 首保卡类型
 *
 * @author liutao
 * @date 2021/1/26
 */
public enum FirstMaintainCardType implements HasCode, HasCaption {
    /** 4S店首保 */
    FOUR_S_SHOP(1, "4S店首保"),
    /** 统一首保 */
    UNIFORM(2, "统一首保"),
    /** 各地首保 */
    DISTRICT(3, "各地首保"),
    /** 自费首保 */
    OWN_EXPENSE(4, "自费首保");
    private Integer code;
    private String caption;

    FirstMaintainCardType(Integer code, String caption) {
        this.code = code;
        this.caption = caption;
    }

    @Override
    public String getCaption() {
        return caption;
    }

    @Override
    public Integer getCode() {
        return code;
    }
}
